/*
 *
 */

#ifndef USER_CARD_H
#define USER_CARD_H

#include "gkt_types.h"
#include "user_common.h"

#if defined(GKT_CONFIG_RFID_ENABLE) && GKT_CONFIG_RFID_ENABLE

struct _user_card_item {
	user_item_header_u	header;
	uint8_t	data_length;
	uint8_t	data[GKT_USER_CARD_ID_MAXSIZE];
} __ALIGNED(USER_ALIGNMENT);
typedef struct _user_card_item	user_card_item_s;
#define USER_CARD_ITEM_SIZE	sizeof(user_card_item_s)

#define USER_CARD_ITEM(item_index)	\
	(const user_card_item_s *)USER_ITEM_HEADER_C(&g_user_card.instance, item_index)

typedef struct _user_card {
	user_instance_s	instance;
	user_card_item_s	enroll_item;
} user_card_s;
extern user_card_s g_user_card;

#endif

#endif	/* USER_PASSWORD_H */

